﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ParserCore;

namespace QLabValues
{
    public class QFunctionHandle : QLabValues.IQLabValue
    {
        private Identifier _functionHandle;

        public QFunctionHandle(Identifier fh)
        {
            _functionHandle = fh;
        }

        public object Clone()
        {
            return (object)new QFunctionHandle(new Identifier(_functionHandle.ID));
        }

        public Identifier GetFunctionHandle()
        {
            return _functionHandle;
        }

        public void SetFunctionHandle(Identifier fh)
        {
            _functionHandle = fh;
        }

        public IQLabValueType GetEnumType()
        {
            return IQLabValueType.QFunctionHandle;
        }
    }
}
